package cn.ecut.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author ruanxin
 */
@Controller

public class EncodingController {


    @PostMapping("/e/t1")
    public String test01(String name, Model model){
        System.out.println(name);
        model.addAttribute("msg",name);
        return "hello";
    }
}
